package icu.ac.kr.phonebook.view;

import icu.ac.kr.phonebook.provider.ConstantProvider;
import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import android.util.Log;
import android.view.ContextMenu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class TextButton extends TextView implements OnClickListener{

	static final String TAG = "TextButton";
	
	int _id = 0;
	int context_option = 0;
	
	public TextButton(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub
	
	}
	
	@Override
	protected void onCreateContextMenu(ContextMenu menu) {
		// TODO Auto-generated method stub
		super.onCreateContextMenu(menu);
	
		menu.setHeaderTitle("Set the security mode");
		 
		menu.add(0, getId()+ConstantProvider.PRIVATE, 0, "Private");
		menu.add(0, getId()+ConstantProvider.PUBLIC, 0, "Public");
		menu.add(0, getId()+ConstantProvider.COUPLE, 0, "Couple");
		menu.add(0, getId()+ConstantProvider.SHARE, 0, "Sharable");
		
	}




	public void onClick(View v) {
		// TODO Auto-generated method stub
		
	}
	
	
	
	
}
